const getters = {
  isLogined: (state) => {
    const { userInfos = {} } = state,
      token = userInfos.token;
    if (![undefined, null].includes(token) && String(token).length > 0) {
      return true;
    }
    return false;
  },
};

export default getters;
